import ReactDOM from 'react-dom/client';
import { API } from './config';
import { HashRouter } from 'react-router-dom'
import Routes from './routes'
import { Provider } from 'react-redux';
import store, { history } from './store';
import { ConnectedRouter } from 'connected-react-router'
console.log(API)

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(
  <Provider store={ store }>
    <ConnectedRouter history={history}>
      <HashRouter>
        <Routes />
      </HashRouter>
    </ConnectedRouter>
  </Provider>
);
